package com.hzdl.hotel.service.impl;

import com.hzdl.hotel.bean.Statistics;
import com.hzdl.hotel.mapper.StatisticsMapper;
import com.hzdl.hotel.service.StatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StatisticsServiceImpl implements StatisticsService {

    @Autowired
    private StatisticsMapper sm;
    @Override
    public List<Statistics> findDistrict() {
        return sm.findDistrict();
    }

    @Override
    public List<Statistics> findPreference() {
        return sm.findPreference();
    }

    @Override
    public List<Statistics> findSum(Integer year) {
        return sm.findSum(year);
    }
}
